package com.practice.text;

import java.util.regex.*;

public class RegularExpression {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		String text = "line\nline";
		Pattern pattern = Pattern.compile("\n");
		Matcher matcher = pattern.matcher(text);
		boolean isMatch = matcher.matches();
		
		System.out.println(isMatch);
		System.out.println(text.replaceAll("\n", "</br>"));
	}

}
